
<%@ page import="s7m.Professor" %>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="layout" content="main" />
  <g:set var="entityName" value="${message(code: 'professor.label', default: 'Professor')}" />
  <title><g:message code="default.list.label" args="[entityName]" /></title>
</head>
<body>
  <div class="nav">
    <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Página Inicial</a></span>
    <span class="menuButton"><g:link class="create" action="create"><g:message code="Novo Professor" args="[entityName]" /></g:link></span>
  </div>
  <div class="body">
    <h1><g:message code="Listar Professores" args="[entityName]" /></h1>
    <g:if test="${flash.message}">
      <div class="message">${flash.message}</div>
    </g:if>
    <div class="list">
      <table>
        <thead>
          <tr>

        <g:sortableColumn property="id" title="${message(code: 'professor.id.label', default: 'Id')}" />
        <g:sortableColumn property="matricula" title="${message(code: 'professor.matricula.label', default: 'Matricula')}" />
        <g:sortableColumn property="nome" title="${message(code: 'professor.nome.label', default: 'Nome')}" />
        <g:sortableColumn property="sexo" title="${message(code: 'professor.sexo.label', default: 'Sexo')}" />
        <g:sortableColumn property="dataDeNascimento" title="${message(code: 'professor.dataDeNascimento.label', default: 'Data De Nascimento')}" />
        <g:sortableColumn property="cpf" title="${message(code: 'professor.cpf.label', default: 'Cpf')}" />
        <g:sortableColumn property="tipoUsuario" title="${message(code: 'professor.tipoUsuario.label', default: 'Tipo Usuario')}" />

       
        </tr>
        </thead>
        <tbody>
        <g:each in="${professorInstanceList}" status="i" var="professorInstance">
          <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

            <td><g:link action="show" id="${professorInstance.id}">${fieldValue(bean: professorInstance, field: "id")}</g:link></td>
          <td>${fieldValue(bean: professorInstance, field: "matricula")}</td>
          <td>${fieldValue(bean: professorInstance, field: "nome")}</td>
          <td>${fieldValue(bean: professorInstance, field: "sexo")}</td>
          <td>${fieldValue(bean: professorInstance, field: "dataDeNascimento")}</td>
          <td>${fieldValue(bean: professorInstance, field: "cpf")}</td>
          <td>${fieldValue(bean: professorInstance, field: "tipoUsuario")}</td>
          





          </tr>
        </g:each>
        </tbody>
      </table>
    </div>
    <div class="paginateButtons">
      <g:paginate total="${professorInstanceTotal}" />
    </div>
  </div>
</body>
</html>
